import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '@/views/HomeView.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: () => import('../views/ComprehensiveMonitorAlarm/ComprehensiveMonitorAlarm.vue')
   
  },
  {
    path: '/about',
    name: 'about',
    component: () => import('../views/AboutView.vue')
  },
  {
    path: '/timeline',
    name: 'timeline',
    component: () => import('../views/home/timeline.vue')
  },
  {
    path: '/raw',
    name: 'raw',
    component: () => import('../views/home/raw-measurement-data.vue')
  },
  {
    path: '/cross',
    name: 'cross',
    component: () => import('../views/home/cross-dating-data.vue')
  },
  {
    path: '/adminManagement',
    name: 'adminManagement',
    component: () => import('../views/admin-manegement/index.vue')
  },
  {
    path: '/personalsetting',
    name: 'personalSetting',
    component: () => import('../views/personal-setting/index.vue')
  },
  {
    path: '/collectInfo',
    name: 'collectInfo',
    component: () => import('../views/collect-info/index.vue')
  },
  {
    path: '/sampleProcess',
    name: 'sampleProcess',
    component: () => import('../views/sample-process/index1.vue')
  },
  {
    path: '/fxyj',
    name: 'fxyj',
    component: () => import('../views/fxyj/fxyjModule.vue')
  },
  {
    path: '/wxxpg',
    name: 'wxxpg',
    component: () => import('../views/wxxpg/wxxpgModule.vue')
  },
  {
    path: '/zzalk',
    name: 'zzalk',
    component: () => import('../views/zzalk/zzalkModule.vue')
  },
  {
    path: '/newSequence',
    name: 'newSequence',
    component: () => import('../views/new-sequence/index.vue')
  },

  //面雨量预报
  {
    path: '/surface-rainfall-forecast',
    name: '/surface-rainfall-forecast',
    component: () => import('@/views/surfaceRainfallForecast/SurfaceRainfallForecast.vue')
  },
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
